package com.zlhj.ex.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zlhj.ex.entity.Shi;
import com.zlhj.ex.mapper.ShiMapper;
import com.zlhj.ex.service.ShiService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zsx
 * @date 2021/06/16 9:45
 */
@Service
public class ShiServiceImpl extends ServiceImpl<ShiMapper, Shi> implements ShiService {


    @Override
    public List<Shi> getShiList(String shengId) {
        QueryWrapper<Shi> wrapper = new QueryWrapper<>();
        wrapper.eq("sheng_id",shengId);
        return baseMapper.selectList(wrapper);
    }
}
